
#include <iostream>
#include "MenuItemComp.h"
#include "CONST.h"
void MenuItemComp::show() {
    //nothing to do
}

int MenuItemComp::checkType(int id) {
    return ISLEAF;
}

void MenuItemComp::print(long id) {
    std::cout<<id<<". "<<text<<std::endl;
}

std::vector<std::shared_ptr<IMenuComponent>> MenuItemComp::getchilden() {
    std::vector<std::shared_ptr<IMenuComponent>> a;
    return a;
}

void MenuItemComp::add(IMenuComponent * items) {
    std::cout<<" unsupported "<<std::endl;

}

void MenuItemComp::setText(const std::string & text) {
    this->text=text;
}

void MenuItemComp::setDesc(const std::string & desc) {

}

